//
// Created by kode.zhong on 2020/11/9.
//
#include "lox/chunk.h"
#include "lox/debug.h"
#include "lox/vm.h"

using namespace lox;

int main(int argc, char* argv[]){
  VM<double> vm{std::make_shared<Chunk<double>>()};
  if (argc == 1) {
    vm.Repl();
  } else if (argc == 2) {
    vm.RunFile(argv[1]);
  } else {
    std::cerr << "Usage: clox [path]\n" << std::endl;
    exit(64);
  }
  return 0;
}

